#CMake 最低版本号要求
cmake_minimum_required (VERSION 3.10)

# 项目信息
project(3rdparty_demos VERSION 1.0.0)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置输出路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/)

# 添加自定义 cmake 文件
include(${CMAKE_SOURCE_DIR}/cmake/common.cmake)

find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)

# 添加子目录
add_subdirectory(examples/example_botan2)
add_subdirectory(examples/example_brpc)
add_subdirectory(examples/example_cpp_httplib)
# add_subdirectory(examples/example_cyber)
add_subdirectory(examples/example_glog)
add_subdirectory(examples/example_grpc)
# add_subdirectory(examples/example_hiredis)
# add_subdirectory(examples/example_jsoncpp)
add_subdirectory(examples/example_leveldb)
# add_subdirectory(examples/example_libcurl)
# add_subdirectory(examples/example_libevent)
# add_subdirectory(examples/example_mongoose)
add_subdirectory(examples/example_mysql_capi)
# add_subdirectory(examples/example_mysql_connector)
add_subdirectory(examples/example_nlohmann_json)
add_subdirectory(examples/example_paho_mqtt)
add_subdirectory(examples/example_pcap)
add_subdirectory(examples/example_protobuf)
# add_subdirectory(examples/example_rdkafka)
add_subdirectory(examples/example_spdlog)
add_subdirectory(examples/example_sqlite3)
# add_subdirectory(examples/example_thrift)
add_subdirectory(examples/example_tinyxml2)
# add_subdirectory(examples/example_webp)
# add_subdirectory(examples/example_websocketpp)
add_subdirectory(examples/example_yamlcpp)
add_subdirectory(examples/example_zeromq)
